]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellMountOperation: Use wiggle effect to inform about wrong password
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 21 Jan 2020 09:39:33 +0000 (10:39 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 1 Feb 2020 07:08:33 +0000 (08:08 +0100)
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/942

js/ui/shellMountOperation.js

index f5754c6e2e3534d53bd14348db80121fd488c657..c6e6def8cf0e6d8a2e63eef105f0e0db1571121f 100644 (file)
@@ -13,6 +13,7 @@ const Params = imports.misc.params;
 const ShellEntry = imports.ui.shellEntry;
 
 const { loadInterfaceXML } = imports.misc.fileUtils;
+const Util = imports.misc.util;
 
 var LIST_ITEM_ICON_SIZE = 48;
 var WORK_SPINNER_ICON_SIZE = 16;
@@ -400,6 +401,8 @@ var ShellMountPasswordDialog = GObject.registerClass({
         this._passwordEntry.set_text('');
         this._errorMessageLabel.text = _('Sorry, that didn’t work. Please try again.');
         this._errorMessageLabel.opacity = 255;
+
+        Util.wiggle(this._passwordEntry);
     }
 
     _onCancelButton() {